using System;
using System.Runtime.Serialization;
namespace eTMS.DAO{
	/********************************BEGIN KhuNhaEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:26/10/2011 44:05:56</para>
	/// <para>Class Name: KhuNhaEntity</para>
	/// <para>Description: ClassKhuNhaEntity store data of table KhuNha</para>
	///</summary>

	[DataContract]
	public partial class KhuNhaEntity{


		private bool _InternalChangedIsNullKhuNha_ID=true;
		private bool _IsNullKhuNha_ID=true;
		private bool _InternalChangedIsNullMaKhuNha=true;
		private bool _IsNullMaKhuNha=true;
		private bool _InternalChangedIsNullTenKhuNha=true;
		private bool _IsNullTenKhuNha=true;
		private bool _InternalChangedIsNullGhuChi=true;
		private bool _IsNullGhuChi=true;
		private bool _InternalChangedIsNullTrungTamDaoTao_ID=true;
		private bool _IsNullTrungTamDaoTao_ID=true;
		private int _KhuNha_ID;
		private string _MaKhuNha;
		private string _TenKhuNha;
		private string _GhuChi;
		private int _TrungTamDaoTao_ID;
		[DataMember]
		public bool IsNullKhuNha_ID{
			get{return _IsNullKhuNha_ID;}
			set{if(!_InternalChangedIsNullKhuNha_ID)_IsNullKhuNha_ID=value;}
		}
		[DataMember]
		public bool IsNullMaKhuNha{
			get{return _IsNullMaKhuNha;}
			set{if(!_InternalChangedIsNullMaKhuNha)_IsNullMaKhuNha=value;}
		}
		[DataMember]
		public bool IsNullTenKhuNha{
			get{return _IsNullTenKhuNha;}
			set{if(!_InternalChangedIsNullTenKhuNha)_IsNullTenKhuNha=value;}
		}
		[DataMember]
		public bool IsNullGhuChi{
			get{return _IsNullGhuChi;}
			set{if(!_InternalChangedIsNullGhuChi)_IsNullGhuChi=value;}
		}
		[DataMember]
		public bool IsNullTrungTamDaoTao_ID{
			get{return _IsNullTrungTamDaoTao_ID;}
			set{if(!_InternalChangedIsNullTrungTamDaoTao_ID)_IsNullTrungTamDaoTao_ID=value;}
		}
		[DataMember]
		public int KhuNha_ID{
			get{return _KhuNha_ID;}
			set{
				_KhuNha_ID=value;
				if(_KhuNha_ID!=null){
					_IsNullKhuNha_ID=false;
					_InternalChangedIsNullKhuNha_ID=true;
				}
			}
		}
		[DataMember]
		public string MaKhuNha{
			get{return _MaKhuNha;}
			set{
				_MaKhuNha=value;
				if(_MaKhuNha!=null){
					_IsNullMaKhuNha=false;
					_InternalChangedIsNullMaKhuNha=true;
				}
			}
		}
		[DataMember]
		public string TenKhuNha{
			get{return _TenKhuNha;}
			set{
				_TenKhuNha=value;
				if(_TenKhuNha!=null){
					_IsNullTenKhuNha=false;
					_InternalChangedIsNullTenKhuNha=true;
				}
			}
		}
		[DataMember]
		public string GhuChi{
			get{return _GhuChi;}
			set{
				_GhuChi=value;
				if(_GhuChi!=null){
					_IsNullGhuChi=false;
					_InternalChangedIsNullGhuChi=true;
				}
			}
		}
		[DataMember]
		public int TrungTamDaoTao_ID{
			get{return _TrungTamDaoTao_ID;}
			set{
				_TrungTamDaoTao_ID=value;
				if(_TrungTamDaoTao_ID!=null){
					_IsNullTrungTamDaoTao_ID=false;
					_InternalChangedIsNullTrungTamDaoTao_ID=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END KhuNhaEntityBase*****************************************/
	/*****************************************************************************************************/
}

